package com.qfmy.app.mapper.community;

import com.qfmy.model.entity.community.PostLike;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 清风明月
 * @Package com.qfmy.app.mapper.community
 * @date 2025/4/17
 * @description 帖子点赞
 */
@Mapper
@SuppressWarnings("all")
public interface PostLikeMapper {

    /**
     * 添加帖子点赞
     * @param postLike
     */
    @Insert("insert into post_like (post_id, user_id,like_time) values (#{postId}, #{userId},now())")
    void insert(PostLike postLike);
}
